home *** CD-ROM | disk | FTP | other *** search
- # gw file for loading up and rendering rotating Runners
- # within the runner menu selection screen
- #
- # June 4, 1996
- #
-
- #Set the directories to point to the Runner models and textures
- SetModelDirectory ..\data\runners\models
- SetTextureDirectory ..\data\runners\textures
-
- # Turn on flat shading for all data.
- GameGenForceFlatShading on
-
-
- #Perspective stuff...
- PerspectiveTexture on
- SetPerspectiveTextureDeltaX 16
- SetPerspectiveTextureFarZ 64.0
-
-
- #World Stuff...
- NewWorld world1
- WorldOrigin -64.0 64.0
- WorldExtents 128.0 -128.0
- WorldPartition 128 -128
-
- #Window Stuff...
- NewWindow window1
- WindowOrigin 65 55
- WindowResolution 189 52
-
- #Display Stuff...
- NewDisplay display
- DisplayOrigin 0 0
- DisplayResolution 320 200
- DisplaySetClearColor .2 .2 .2
-
- #Camera Stuff...
- NewCamera camera1
- CameraSetWorld world1
- CameraSetWindow window1
- CameraSetFOV 62 18
- CameraSetNearFarClip 1.5 1024.0
- CameraTranslate 0 2.3 10
- CameraRotate -10.0 0 0
- CameraSetActive on
-
-
-
- #####################
- # LOADING RUNNERS...#
- #####################
-
- #All object loading will be done into this world node...
- GameGenSetWorld world1
-
- #Load up the Red runner...
- LoadGameGen redrunr.gam redrunner
- Object3DTranslate 0.0 0.0 3.0
- Object3DRotate 0.0 0.0 0.0
-
- #Set up runner floor polygon to scroll with runner motion.
- FindNode lt
- Object3DRegisterTexturesToWorld on
- Object3DSetPriority -20
- Object3DSetTextureWorldBaseCoordinates 0.0 0.0
- Object3DSetTextureWorldTexturesPerMeter 0.0625 0.0625
-
- NewObject3D runner0
- Object3DAddChild redrunner
-
-
-
- #Load up the Blue runner...
- LoadGameGen blurunr.gam blurunner
- Object3DTranslate 0.0 0.0 3.0
- Object3DRotate 0.0 0.0 0.0
-
- #Set up runner floor polygon to scroll with runner motion.
- FindNode lt
- Object3DRegisterTexturesToWorld on
- Object3DSetPriority -20
- Object3DSetTextureWorldBaseCoordinates 0.0 0.0
- Object3DSetTextureWorldTexturesPerMeter 0.0625 0.0625
-
-
- NewObject3D runner1
- Object3DAddChild blurunner
-
-
- #Load up the Yellow runner...
- LoadGameGen ylwrunr.gam ylwrunner
- Object3DTranslate 0.0 0.0 3.0
- Object3DRotate 0.0 0.0 0.0
-
- #Set up runner floor polygon to scroll with runner motion.
- FindNode lt
- Object3DRegisterTexturesToWorld on
- Object3DSetPriority -20
- Object3DSetTextureWorldBaseCoordinates 0.0 0.0
- Object3DSetTextureWorldTexturesPerMeter 0.0625 0.0625
-
-
- NewObject3D runner2
- Object3DAddChild ylwrunner
-
-
- #Load up the White runner...
- LoadGameGen whtrunr.gam whtrunner
- Object3DTranslate 0.0 0.0 3.0
- Object3DRotate 0.0 0.0 0.0
-
- #Set up runner floor polygon to scroll with runner motion.
- FindNode lt
- Object3DRegisterTexturesToWorld on
- Object3DSetPriority -20
- Object3DSetTextureWorldBaseCoordinates 0.0 0.0
- Object3DSetTextureWorldTexturesPerMeter 0.0625 0.0625
-
-
- NewObject3D runner3
- Object3DAddChild whtrunner
-
-
- #Load up the Purple runner...
- LoadGameGen prprunr.gam prprunner
- Object3DTranslate 0.0 0.0 3.0
- Object3DRotate 0.0 0.0 0.0
-
- #Set up runner floor polygon to scroll with runner motion.
- FindNode lt
- Object3DRegisterTexturesToWorld on
- Object3DSetPriority -20
- Object3DSetTextureWorldBaseCoordinates 0.0 0.0
- Object3DSetTextureWorldTexturesPerMeter 0.0625 0.0625
-
-
- NewObject3D runner4
- Object3DAddChild prprunner
-
-
- #Load up the Green runner...
- LoadGameGen grnrunr.gam grnrunner
- Object3DTranslate 0.0 0.0 3.0
- Object3DRotate 0.0 0.0 0.0
-
- #Set up runner floor polygon to scroll with runner motion.
- FindNode lt
- Object3DRegisterTexturesToWorld on
- Object3DSetPriority -20
- Object3DSetTextureWorldBaseCoordinates 0.0 0.0
- Object3DSetTextureWorldTexturesPerMeter 0.0625 0.0625
-
-
- NewObject3D runner5
- Object3DAddChild grnrunner
-
-
- #Load up the Pink runner...
- LoadGameGen pnkrunr.gam pnkrunner
- Object3DTranslate 0.0 0.0 3.0
- Object3DRotate 0.0 0.0 0.0
-
- #Set up runner floor polygon to scroll with runner motion.
- FindNode lt
- Object3DRegisterTexturesToWorld on
- Object3DSetPriority -20
- Object3DSetTextureWorldBaseCoordinates 0.0 0.0
- Object3DSetTextureWorldTexturesPerMeter 0.0625 0.0625
-
-
- NewObject3D runner6
- Object3DAddChild pnkrunner
-
-
- #Load up the Orange runner...
- LoadGameGen orgrunr.gam orgrunner
- Object3DTranslate 0.0 0.0 3.0
- Object3DRotate 0.0 0.0 0.0
-
- #Set up runner floor polygon to scroll with runner motion.
- FindNode lt
- Object3DRegisterTexturesToWorld on
- Object3DSetPriority -20
- Object3DSetTextureWorldBaseCoordinates 0.0 0.0
- Object3DSetTextureWorldTexturesPerMeter 0.0625 0.0625
-
-
- NewObject3D runner7
- Object3DAddChild orgrunner
-
-
-
-
- #Add all Runners to the world
- FindNode world1
- AddChild runner0
-
- FindNode world1
- AddChild runner1
-
- FindNode world1
- AddChild runner2
-
- FindNode world1
- AddChild runner3
-
- FindNode world1
- AddChild runner4
-
- FindNode world1
- AddChild runner5
-
- FindNode world1
- AddChild runner6
-
- FindNode world1
- AddChild runner7